package com.cd.javacxy.module.web.dao;

import com.cd.javacxy.common.model.entity.CxyComment;
import com.cd.javacxy.common.model.query.CommentQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * CxyComment的Dao接口
 *
 * @author yanghy
 */
public interface CxyCommentDao {

    List<CxyComment> selectList(CommentQuery commentQuery);

    List<CxyComment> selectChildren(@Param("id") Integer id);

    int selectCount(CommentQuery commentQuery);

    int insert(CxyComment comment);
}